﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class GUI_PublisherMasterPage : System.Web.UI.MasterPage
{
    public LanguageManage Language;
    public CategoryAdapter cateAdap;
    public PlatformAdapter platformAdap;
    public List<CategoryEntity> listCategory { set; get; }
    public List<PlatformEntity> platforms { set; get; }

    public bool isLoginByAdmin=false;
    protected void Page_Load(object sender, EventArgs e)
    {
        Language=new LanguageManage();
        cateAdap=new CategoryAdapter();
        platformAdap=new PlatformAdapter();
        listCategory = cateAdap.getListCategories();
        platforms = platformAdap.getListPlatform();        
        if (UserManager.Instance.CheckDistributorAdminAuthen())
        {
            isLoginByAdmin = true;
        }
    }
}
